L = [x * 2 for x in range(5)]

G = (x * 2 for x in range(5))

print(L)
print(G)
print(next(G))
